import request from '@/utils/request'

// 方案列表查询
export function getCyUserList(query) {
  return request({
    url: '/lims/contract/project/cyUserList',
    method: 'get',
    params: query
  })
}

// 检测内容列表
export function getCyJcxmList(query) {
  return request({
    url: '/lims/project/jcxm/list',
    method: 'get',
    params: query
  })
}

// 采样详情和质控准备列表
export function getFixerList(query) {
  return request({
    url: '/lims/project/sample/fixerList',
    method: 'get',
    params: query
  })
}

export function getQcSampleList(query) {
  return request({
    url: '/lims/project/sample/qcSampleList',
    method: 'get',
    params: query
  })
}

// 外部平行 和 全程序空白 post
export function postQc(qcTypeId, data) {
    return request({
      url: '/lims/project/sample/qc/' + qcTypeId,
      method: 'post',
      data: data
    })
  }


// 外部平行 和 全程序空白 del
export function delQc(projectId, data) {
    return request({
      url: '/lims/project/sample/qc/delete/' + projectId,
      method: 'delete',
      data: data
    })
  }

// 仪器准备查询接口  get
export function getInstrumentList(id) {
  return request({
    url: '/lims/project/sample/instrumentList/' + id,
    method: 'get',
  })
}

// 查询当前仪器对应的检测项目列表 get
export function getJcxmInstrumentData(projectId,instrumentType,query) {
  return request({
    url: '/lims/project/sample/jcxmInstrumentList/' + projectId + "/" + instrumentType,
    method: 'get',
    params: query
  })
}

// 容器准备查询接口 （树形） get
export function containerTypeList(id) {
  return request({
    url: '/lims/project/sample/containerTypeList/' + id,
    method: 'get',
  })
}

// 查询当前容器器对应的项目列表 get
export function getsampleListByContainer(projectId,containerTypeId,jclbId,query) {
  return request({
    url: '/lims/project/sample/sampleListByContainer/' + projectId + "/" + containerTypeId + "/" + jclbId,
    method: 'get',
    params: query
  })
}

// 固定剂查询接口 （树形） get 
export function fixerTypeList(id) {
  return request({
    url: '/lims/project/sample/fixerTypeList/' + id,
    method: 'get',
  })
}

// 获取方案详情列表
export function getProjectCy(projectId) {
  return request({
    url: 'lims/contract/project/cy/' + projectId,
    method: 'get',
  })
}


// 查询当前固定剂对应的项目列表 get
export function getfixerList(query) {
  return request({
    url: '/lims/project/sample/fixerList',
    method: 'get',
    params: query
  })
}

// 查询采样准备 数量
export function getCount(query) {
  return request({
    url: '/lims/project/sample/count',
    method: 'get',
    params: query
  })
}